﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using BaseballGame;
using BaseballGame.Controllers;
using BaseballGame.Models;

namespace BaseballGame.Tests
{
	[TestClass]
	public class TestEngine
	{

		[TestMethod]
		public void TestGameEngine()
		{
			Team Home;
			Team Away;
			Player Test;
			Test = new Player();
			Home = new Team();
			Away = new Team();
			Test.hitting_chance = 50;
			Test.power = 30;
			Test.pitching = 20;

			Home.FirstBase = Test;
			Home.SecondBase = Test;
			Home.ThirdBase = Test;
			Home.Catcher = Test;
			Home.LeftField = Test;
			Home.ShortStop = Test;
			Home.CenterField = Test;
			Home.Rightfield = Test;
			Home.Pitcher = Test;

			Away.FirstBase = Test;
			Away.SecondBase = Test;
			Away.ThirdBase = Test;
			Away.Catcher = Test;
			Away.LeftField = Test;
			Away.ShortStop = Test;
			Away.CenterField = Test;
			Away.Rightfield = Test;
			Away.Pitcher = Test;


			GameEngine Game = new GameEngine(Home, Away);

			Assert.IsNotNull(Game.ScoreHome);
		}
	}
}
